<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>用户信息</title>
</head>
<body>
    <table>
        <tr>
            <td>ID</td>
            <td>{$user.id}</td>
        </tr>
        <tr>
            <td>账号</td>
            <td>{$user.username}</td>
        </tr>
        <tr>
            <td>昵称</td>
            <td>{$user.nickname}</td>
        </tr>
        <tr>
            <td>手机号</td>
            <td>{$user.mobile}</td>
        </tr>
        <tr>
            <td>创建时间</td>
            <td>{:date("Y-m-d H:i:s",$user.create_time)}</td>
        </tr>
    </table>
    <button type="button" onclick="updateInfo()">修改信息</button>
    <button type="button" onclick="updateMobile()">修改手机号</button>
    <button type="button" onclick="updatePassword()">修改密码</button>
    <button type="button" onclick="logout()">退出</button>
    <script>
        function updateInfo(){
            location.href="{:url('updateInfo')}";
        }
        function updateMobile(){
            location.href="{:url('updateMobile')}";
        }
        function updatePassword(){
            location.href="{:url('updatePassword')}";
        }
        function logout(){
            location.href="{:url('logout')}";
        }
    </script>
    <div>
        {foreach name="$menu" item="vo"}
        <a href="{:url($vo.path)}">{$vo.title}</a>
        {/foreach}
    </div>
</body>
</html>
